<!doctype html>

<%@ page import="com.seabook.happy.website.daos.MoodDao" %>
<%@ page import="com.seabook.happy.website.daos.NewsDao" %>
<%@ page import="com.seabook.happy.website.services.UserIdentificationService" %>
<%@ page import="com.seabook.happy.website.pojos.Mood" %>
<%@ page import="com.seabook.happy.website.pojos.News" %>
<%@ page import="com.seabook.happy.website.utils.DateUtils" %>
<%@ page import="com.seabook.happy.website.utils.ImageUtils" %>

<%@ page import="java.util.List"%>

<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

<html>
<head>
	<meta charset="utf-8" />
	<title>Happy Seabook's Personal Web Site</title>
	<link rel="stylesheet" type="text/css" href="/css/styles.css" />
	<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
</head>
<body>
	<div id="wrapper">
	<div id="headerDiv">
	    <div id="banner">
			<%
				UserService userService = UserServiceFactory.getUserService();
	
				if (UserIdentificationService.isSignedIn()) {
			%>
			<a href="<%=userService.createLogoutURL(request.getRequestURI())%>">logout</a>
			&nbsp; Welcome back
			<%=userService.getCurrentUser().getNickname()%>
			!!
			<%
				} else {
			%>
			<a href="<%=userService.createLoginURL(request.getRequestURI())%>">
				Haven't logged in? </a>
			<%
				}
			%>
		</div>
		
		<div id="navMenu">
		<ul>
			<li><a href="/homepage.jsp">Home</a>
				
			</li>
		</ul>
		
		<ul>
			<li><a href="/resume.jsp">Resume</a>
			</li>
		</ul>
		
		<ul>
			<li><a href="#">News</a>
				<ul>
					<li><a href="#">Link Item</a></li>
					<li><a href="#">Link Item</a></li>
					<li><a href="#">Link Item</a></li>
				</ul>
			</li>
		</ul>
		
		<ul>
			<li><a href="/blog.jsp">Blog</a>
			</li>
		</ul>
		
		<ul>
			<li><a href="#">About Us</a>
			</li>
		</ul>
		</div> <!-- end mavMenu -->
	</div> <!-- end header -->